

for i in range(3):
    name = input()
    password = input()
    if name == "Kate" and password == "666666":
        print("登录成功！")
        break
    elif i == 2:
        print("3次用户名或者密码均有误！退出程序。")
    else:
        pass


